package com.the_ring.behavior.media;

/**
 * @author: t22306139
 * @date: 2023/12/1  15:26
 */
public class HouseTenant extends Person{

    public HouseTenant(String name) {
        super(name);
    }

    @Override
    public void publishMessage(String msg) {
        getMediator().needHouse(msg);
    }

    public void contact(String message) {
        System.out.println("中介通知租户，" + getName() + ": " + message);
    }
}
